package suanfa.exam1;

import java.util.Scanner;

public class t3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String next = scanner.next();
        System.out.println(next.substring(0, next.lastIndexOf(".")));
        System.out.println("0" + next.substring(next.lastIndexOf("."), next.length()));
    }
}
